package com.rayboo.example.design.pattern.proxy;

public class Lawer implements ILawsuit{

    private ILawsuit mLawsuit;

    public Lawer(ILawsuit lawsuit) {
        mLawsuit = lawsuit;
    }


    @Override
    public void summit() {
        System.out.println("律师：是否要提交诉讼？");
        mLawsuit.summit();
        System.out.println("律师：已向法院提起诉讼。");

    }

    @Override
    public void burden() {
        System.out.println("律师：请提供相关证据。");
        mLawsuit.burden();
        System.out.println("律师：已提供相关证据到法院。");
    }

    @Override
    public void defend() {
        System.out.println("律师：开庭辩护，是否可以私下协商解决？");
        mLawsuit.defend();
        System.out.println("律师：等待法院的判决结果。");
    }

    @Override
    public void finish() {
        System.out.println("律师：已收到法院的判决结果。");
        mLawsuit.finish();
        System.out.println("律师：结案。");
    }
}
